<%#
    # footer  : 页尾元素组对象
    #   *.about : 图像类导航元素
    #   *.send  : 附加类导航元素
    #       *.text  : 导航标题
    #       *.link  : 导航链接
    #       *.sty   : 元素样式
    #   *.imgSend : 图像类导航元素
    #       *.num   : 数量数据
    #       *.link  : 导航链接
    #       *.text  : 导航标题
    #       *.fontClass  : 导航字体图像类
#%>
<style>
    /* 页脚基本样式 */
.site-footer {
  background-color: #fff;
  color: #222;
  font-size: 14px;
  padding: 0;
  margin-top: 50px;
}

/* 页脚顶部区域 */
.footer-top {
  background-color: #fff;
  padding: 60px 0 30px;
}

/* 页脚底部区域 */
.footer-bottom {
  background-color: #fff;
  padding: 20px 0;
  border-top: 1px solid #fff;
}

/* 网站信息区域 */
.footer-info {
  margin-bottom: 30px;
}

.footer-logo {
  margin-bottom: 15px;
}

.footer-description {
  color: #222;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 社交媒体链接 */
.social-links {
  display: flex;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #fff;
  color: #444;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #007bff;
  color: #222;
  transform: translateY(-3px);
}

/* 页脚导航 */
.footer-heading {
  color: #222;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: #007bff;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-item {
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.footer-nav-item i {
  margin-right: 8px;
  color: #007bff;
  font-size: 12px;
}

.footer-link {
  color: #222;

  font-size: 14px;

  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-link:hover {
  color: #222;
  padding-left: 5px;
}

/* 快捷入口 */
.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 5px;
  background-color: #333;
}

.quick-link-item:hover {
  background-color: #444;
  color: #fff;
  transform: translateY(-3px);
}

.quick-link-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.quick-link-text {
  font-size: 12px;
  text-align: center;
}

/* 订阅区域 */
.newsletter {
  margin-top: 30px;
}

.newsletter p {
  margin-bottom: 15px;
}

.newsletter-form .input-group {
  border-radius: 30px;
  overflow: hidden;
}

.newsletter-form .form-control {
  border: none;
  padding: 10px 15px;
  background-color: #333;
  color: #fff;
  border-radius: 30px 0 0 30px;
}

.newsletter-form .form-control::placeholder {
  color: #aaa;
}

.newsletter-form .btn {
  border-radius: 0 30px 30px 0;
  padding: 10px 15px;
  background-color: #007bff;
  border: none;
}

.newsletter-form .btn:hover {
  background-color: #0069d9;
}

/* 版权区域 */
.copyright {
  margin: 0;
}

.footer-legal {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.legal-link {
  color: #aaa;
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-link:hover {
  color: #fff;
}

.web-authentication {
  display: flex;
  align-items: center;
  color: #aaa;
  margin-left: 20px;
  text-decoration: none;
}

.web-authentication img {
  margin-right: 5px;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .footer-contact {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .footer-links {
    margin-bottom: 30px;
  }
  
  .footer-legal {
    justify-content: center;
    margin-top: 15px;
  }
  
  .copyright {
    text-align: center;
  }
  
  .legal-link, .web-authentication {
    margin: 5px 10px;
  }
}

@media (max-width: 576px) {
  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

</style>
<footer class="container-fluid">
    <div class="footerNavBox row">
        <div class="footerItem col-4">
            <span class="footerItemTitle">Cocokalo</span>
            <ul class="clearfix text-center">
                <% footer.about.forEach(function(item) { %>
                    <li class="<%= item.sty %>">
                        <a href="<%= item.link %>"><%= item.text %></a>
                    </li>
                <% }) %>
            </ul>
        </div>

        <div class="footerItem col-4">
            <span class="footerItemTitle">传送门</span>
            <ul class="clearfix text-center">
                <% footer.send.forEach(function(item) { %>
                    <li class="<%= item.sty %>">
                        <a href="<%= item.link %>"><%= item.text %></a>
                    </li>
                <% }) %>
            </ul>
        </div>

        <div class="footerItem col-4">
            <ul class="clearfix text-center">
                <% footer.imgSend.forEach(function(item) { %>
                    <li>
                        <a href="<%= item.link %>">
                            <b class="col-12 fa <%= item.fontClass %>" aria-hidden="true"></b>
                            <p><%= item.text %></p>
                        </a>
                    </li>
                <% }) %>
            </ul>
        </div>
    </div>

    <div class="attestBox text-center">
        <p>Copyright © XXXX XXX.com All Rights Reversed.</p>
        <a href="/" class="web_authentication" title="网站名">
            <img alt="" src="http://www.clantrip.com/static/images/ghs.png" width="20px" height="20px">
            <span>赣ICP备XXXXXXXXX号</span>
        </a>
    </div>
</footer>